package oop.ex3.crosswords;

/**
 * File name: MyCrosswordPosition.java
 * Description: Specifies a basic position of an entry in a crossword.
 * @author yossavi dawn16889
 */
public class MyCrosswordPosition implements CrosswordPosition{
	
	private int x,y;
	private boolean isVertical;
	
	/**
	 * constructor
	 * @param x - x coordinate
	 * @param y - y coordinate
	 * @param isVertical - position orientation
	 */
	public MyCrosswordPosition (int x, int y, boolean isVertical) {
		this.x=x;
		this.y=y;
		this.isVertical=isVertical;		
	}

	/* (non-Javadoc)
	 * @see oop.ex3.crosswords.CrosswordPosition#getX()
	 */
	@Override
	public int getX() {
		return this.x;
	}

	/* (non-Javadoc)
	 * @see oop.ex3.crosswords.CrosswordPosition#getY()
	 */
	@Override
	public int getY() {
		return this.y;
	}

	/* (non-Javadoc)
	 * @see oop.ex3.crosswords.CrosswordPosition#isVertical()
	 */
	@Override
	public boolean isVertical() {
		return this.isVertical;
	}
	
	
}
